package com.terra;

import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;

public class MySpinnerListener implements OnItemSelectedListener {
	
	@Override
	public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,
			long arg3) {
		switch(arg2) {
		case 0:
			Globals.mapView.setSatellite(false);
			break;
			
		case 1:
			Globals.mapView.setSatellite(true);
			break;			
		}
	}

	@Override
	public void onNothingSelected(AdapterView<?> arg0) {
		// TODO Auto-generated method stub
		
	}

}